package com.javasm.bootcrud01.exception;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
@JsonFormat(shape = JsonFormat.Shape.OBJECT)


public enum JavasmExceptionEnum {

    ParameterNull(1001,"参数为空"),
    UserNotExist(1002,"用户不存在"),
    PasswordError(1003,"密码错误"),
    DeleteError(2001,"删除失败"),
    PermissionDenied(600,"权限不足");
    private  Integer   code;
    private   String   msg;
}
